@echo off
flutter build windows
if %errorlevel% neq 0 (
    echo Flutter build failed!
    exit /b %errorlevel%
)

set BUILD_DIR=build\windows\runner\Release

echo Copying sqlite3.dll to %BUILD_DIR%
copy /Y sqlite3.dll %BUILD_DIR%\sqlite3.dll

echo Build and copy complete.
pause
